#include <iostream>
#include <sys/types.h>
#include <sys/select.h>

using namespace std;

int main (void) 
{
	int fd = 5;
	fd_set fdset;
	FD_ZERO(&fdset);
	FD_SET(fd, &fdset);
	if (FD_ISSET(fd, &fdset))
	{
		cout << __LINE__ << ": setted." << endl;
	}
	FD_SET(fd, &fdset);
	FD_ZERO(&fdset);
	if (FD_ISSET(fd, &fdset))
	{
		cout << __LINE__ << ": setted." << endl;
	}
	return 0;
}

